application of vector algebra